﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ThreeDSample
{
    class CustomPanel : Panel
    {
        const int WM_TABLET_QUERY_SYSTEM_GESTURE_STATUS = 716;
        const uint SYSTEM_GESTURE_STATUS_NOHOLD = 0x00000001;

        protected override void WndProc(ref Message m)
        {
            switch (m.Msg)
            {
                case WM_TABLET_QUERY_SYSTEM_GESTURE_STATUS:
                    {
                        uint result = 0;

                        result |= SYSTEM_GESTURE_STATUS_NOHOLD;

                        m.Result = (IntPtr)result;
                    }
                    break;

                default:
                    base.WndProc(ref m);
                    break;

            }

        }
    }
}
